//用户管理模块接口
import request from '@/utils/request.ts'

enum API {
  //获取全部用户信息
  ALLUSER_URL = '/users',
  //删除用户
  DELETEUSER_URL = '/users/:id',
}

//获取用户账号信息的接口
export const reqUserInfo = () => {
  return request.get(API.ALLUSER_URL)
}

//删除用户接口
export const reqDeleteUser = (id: number) => {
  return request.delete(API.DELETEUSER_URL.replace(':id', id.toString()))
}

